package shoooter;


import shoooter.entity.nonimage.Bomb;
import shoooter.entity.nonimage.Player;
import shoooter.entity.nonimage.enemy.Enemy;



public class GameState {

    int score = 0;
    public int level = 1;
    
    public int POINTS = 20;

    int shoot_timer = 0;
    public int shoot_timer_limit = 3;

    public int regen_rate = 0;

    int bombs = 0;

    Enemy[] enemies;
    public Bomb[] bomb = new Bomb[2];
    public Player p;

    final static int ON = 0, OFF = 1;


    void setPlayer(Player pl){
        this.p = pl;
    }

    void turboFire(int state) {
        if(state == ON) {
            this.shoot_timer_limit = 1;
            POINTS = 50;
        }
        else {
            this.shoot_timer_limit = 3;
            POINTS = 20;
        }
    }

    void setRegenRate(int value) {
        regen_rate = value;
    }

    public void newBomb(Bomb b) {
        bomb[bombs] = b;
        bombs = bombs >= 1 ? 0 : bombs + 1;
    }

}
